const todolist=require('../controllers/todolist.js');
const router=require('koa-router')();

//todolist(router);
router.get('/todolist/:id',todolist.getTodolist);
router.post('/todolist',todolist.createTodolist);
router.put('/todolist',todolist.updateTodolist);
router.delete('/todolist/:userId/:id',todolist.deletTodolist);
module.exports=router;